home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / mf-db.zip / CSAMPLE\CONVERT\CONVTEST.C next >
C/C++ Source or Header  |  1993-09-18  |  572b  |  34 lines

  1. /*
  2.  
  3.     Simple test program with source code embeded
  4.  
  5. */
  6.  
  7. #define     NOT_DLL
  8. #include     "mfconv.c"
  9.  
  10. /*
  11.     Your non-standard WIN-MAIN type of thing...
  12. */
  13. int PASCAL WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
  14. HANDLE hInstance;
  15. HANDLE hPrevInstance;
  16. LPSTR lpCmdLine;
  17. int nCmdShow;
  18. {
  19.     
  20.    LPSTR lpszDBName;
  21.    
  22.    lpszDBName = lpCmdLine;
  23.    if (lstrlen(lpszDBName) == 0)
  24.            {
  25.         MessageBox(NULL, "PARAMETERS:\n<FULL_PATH_and_DB_FILE>", "ERROR", MB_OK);
  26.         return 0;
  27.         }
  28.         
  29.     mfConvert(lpszDBName);
  30.    
  31.        return 0;
  32. }
  33.  
  34.